{$header}
<div id="main" class="main" >
    <div class="content">
  <h3 class="heading">编辑销售订单 [ <a href="__URL__">返回订单列表</a> ] [ <a href="javascript:history.back(-1)">返回上一次操作</a> ] 
<div class="btn-group pull-right">
    <a class="btn btn-primary" href="__URL__/full_edit/id/{$vo.id}"><i class="icon-edit icon-white"></i> 超级编辑</a>
    <a class="btn btn-primary" href="__URL__/print_check_order/id/{$vo.id}" target="_blank"><i class="icon-print icon-white"></i>打印订单审核表</a>
</div>
   </h3>
<div id="result" class="result none"></div>
<ul id="myTab" class="nav nav-tabs">
    <li  class="active"><a href="#home" data-toggle="tab">订单概要</a></li>
    <li><a href="__URL__/detail/id/{$_REQUEST.id}">产品信息</a></li>
    <li><a href="#">发货信息</a></li>
    
</ul>
 <div id="myTabContent" class="tab-content">
            
    <div class="tab-pane fade in active" id="home">

<form class="form-horizontal well" method='post' id="form1" action="__URL__/update/">
<table cellpadding=3 cellspacing=3 >
<tr>
	<td class="tRight" >销售单号：</td>
	<td class="tLeft" >{$vo.mano}   </td>
</tr>
<tr>
    <td class="tRight" >PO号：</td>
    <td class="tLeft" ><input type="text" name="po" value="{$vo.po}"></td>
</tr>

<tr>
	<td class="tRight" >客户：</td>
	<td class="tLeft" ><a href="__APP__/Customer/edit/id/{$vo.customer_id}" target="_blank">{$vo.customer_id|getModelName='Customer'} </a></td>
</tr>
<tr>
    <td>地址：</td>
    <td><textarea name="address" class="input-xxlarge" rows="5">{$vo.address}</textarea></td>
</tr>
<tr>
    <td>运费</td>
    <td><input type="text" name="logifee" value="{$vo.logifee}"></td>
</tr>
<tr>
    <td>总金额：</td>
    <td>{$vo.total}
        <input type="checkbox" name="invoice" class="offset1" <eq name="vo.invoice" value="1">checked</eq> >开票
    </td>
</tr>

<tr>
    <td>客户付款货币</td>
    <td>{:configList(C('currency'),$vo['currency'],'currency')}</td>
</tr>
<tr>
	<td class="tRight" >经办人：</td>
	<td class="tLeft" >{:modList('User')} {$vo.create_time|toDate}</td>
</tr>
<tr>
    <td>订单状态：</td>
    <td>
        <eq name='vo.status' value='1'>
            新订单，待审批
            <else/>
            <eq name="vo.status" value='2'>
            审批通过<else/>  
                <?php $orderStatus = C('orderStatus');
            unset($orderStatus[ array_search('审批通过', $orderStatus) ]);
            unset($orderStatus[ array_search('取消订单', $orderStatus) ]);
            unset($orderStatus[ array_search('订单删除', $orderStatus) ]);
            unset($orderStatus[ array_search('争议订单', $orderStatus) ]);//争议订单相关状态交由质量管理控制
            unset($orderStatus[ array_search('争议处理中', $orderStatus) ]);
            unset($orderStatus[ array_search('争议回复', $orderStatus) ]);
            unset($orderStatus[ array_search('争议结束', $orderStatus) ]);
            ?>
            {:configList($orderStatus,$vo['status'])}
        </eq>
        </eq>
        
    </td>
</tr>
<tr>
	<td></td>
	<td class="center" width="300">
        <input type="hidden" value="{$vo.id}" name="id">
	<button type="submit" class="btn btn-primary"><i class="icon-ok icon-white"></i> 保存</button>
	<button type="reset" onclick="javascript:history.back()" class="btn btn-primary offset1"><i class="icon-arrow-left icon-white"></i> 返回</button>
	</td>
</tr>
</table>
</form>
</div>
</div>
</div>


<include file="Public:footer" />
<link rel="stylesheet" type="text/css" href="__PUBLIC__/Js/easyui/themes/default/easyui.css">
<script type="text/javascript" src="__PUBLIC__/Js/jquery-1.4.4.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/Js/easyui/jquery.easyui.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/Js/filter-product.js"></script>
<load href="__PUBLIC__/Js/My97DatePicker/WdatePicker.js" />
